package leetcode

import java.util.*

fun <T> toLinkedList(list: List<T>): LinkedList<T> {
    val tLikedList = LinkedList<T>()
    list.forEach {
        tLikedList.add(it)
    }
    return tLikedList
}